package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.MessageRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 市场管理 内部调用接口(消息用)
 * @author youli.chen
 * @date 2020/12/25 15:23
 * @since v1.0
 * @version v1.0
 */
@FeignClient(name = "pro-web-pc",contextId = "marketActivityFeignClient")
public interface MarketActivityFeignClient {

    //****************************************** 线索 ******************************************************//
    /**
     * Description: 线索新建 消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/add", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueAdd(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 线索状态变更  消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/change", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueChange(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 线索添加删除负责人  消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/teamMain", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueTeamMain(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 线索添加删除协同人  消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/teamSynergetic", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueTeamSynergetic(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 线索阶段消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/clueStage", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueStage(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);

    /**
     * Description: 线索移交  消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/handover", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueHandover(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 线索分配  消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author youli.chen
     * @date 2020/12/24 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/clue/distribution", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> clueDistribution(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);

}
